home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / attr.z / attr
Encoding:
Text File  |  2002-10-03  |  7.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. aaaattttttttrrrr((((1111))))                                                                aaaattttttttrrrr((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      attr - manipulate Extended Attributes on filesystem objects
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      aaaattttttttrrrr [ ----LLLLRRRRqqqq ] ----ssss aaaattttttttrrrrnnnnaaaammmmeeee [ ----VVVV aaaattttttttrrrrvvvvaaaalllluuuueeee ] ppppaaaatttthhhhnnnnaaaammmmeeee
  13.  
  14.      aaaattttttttrrrr [ ----LLLLRRRRqqqq ] ----gggg aaaattttttttrrrrnnnnaaaammmmeeee ppppaaaatttthhhhnnnnaaaammmmeeee
  15.  
  16.      aaaattttttttrrrr [ ----LLLLRRRRqqqq ] ----rrrr aaaattttttttrrrrnnnnaaaammmmeeee ppppaaaatttthhhhnnnnaaaammmmeeee
  17.  
  18.      aaaattttttttrrrr [ ----LLLLRRRRqqqq ] ----llll ppppaaaatttthhhhnnnnaaaammmmeeee
  19.  
  20.  
  21. OOOOVVVVEEEERRRRVVVVIIIIEEEEWWWW
  22.      Extended Attributes implement the ability for a user to attach name/value
  23.      pairs to objects within the filesystem.  They are currently only fully
  24.      supported in XFS and CXFS filesystems.  Other filesystems may provide a
  25.      partial implementation.
  26.  
  27.      They could be used to store meta-information about the file.  For example
  28.      "character-set=kanji" could tell a document browser to use the Kanji
  29.      character set when displaying that document and "thumbnail=..." could
  30.      provide a reduced resolution overview of a high resolution graphic image.
  31.  
  32.      The _n_a_m_e_s can be up to 256 bytes in length, terminated by the first 0
  33.      byte.  The intent is that they be printable ASCII (or other character
  34.      set) names for the attribute.
  35.  
  36.      The _v_a_l_u_e_s can be up to 256KB of arbitrary binary data.
  37.  
  38.      Attributes can be attached to all types of inodes:  regular files,
  39.      directories, symbolic links, device nodes, etc.
  40.  
  41.      There are 2 disjoint attribute name spaces associated with every
  42.      filesystem object.  They are the rrrrooooooootttt and uuuusssseeeerrrr address spaces.  The rrrrooooooootttt
  43.      address space is accessible only to privileged users, and only then by
  44.      specifying a flag argument to the function call.  A privileged user can
  45.      be either the superuser in an IIIIRRRRIIIIXXXX environment, or a user with
  46.      CCCCAAAAPPPP____DDDDEEEEVVVVIIIICCCCEEEE____MMMMGGGGTTTT capability.  Other users will not see or be able to modify
  47.      attributes in the rrrrooooooootttt address space.  The uuuusssseeeerrrr address space is
  48.      protected by the normal file permissions mechanism, so the owner of the
  49.      file can decide who is able to see and/or modify the value of attributes
  50.      on any particular file.
  51.  
  52.      Attributes are currently supported only in the XFS filesystem type.
  53.  
  54. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  55.      The _a_t_t_r utility allows the manipulation of Extended Attributes
  56.      associated with filesystem objects from within shell scripts.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. aaaattttttttrrrr((((1111))))                                                                aaaattttttttrrrr((((1111))))
  71.  
  72.  
  73.  
  74.      There are four main operations that _a_t_t_r can perform:
  75.  
  76.      GGGGEEEETTTT  The ----gggg aaaattttttttrrrrnnnnaaaammmmeeee option tells _a_t_t_r to search the named object and
  77.           print (to _ssss_tttt_dddd_oooo_uuuu_tttt) the value associated with that attribute name.
  78.           With the ----qqqq flag, _ssss_tttt_dddd_oooo_uuuu_tttt will be exactly and only the value of the
  79.           attribute, suitable for storage directly into a file or processing
  80.           via a piped command.
  81.  
  82.      LLLLIIIISSSSTTTT The ----llll option tells _a_t_t_r to list the names of all the attributes
  83.           that are associated with the object, and the number of bytes in the
  84.           value of each of those attributes.  With the ----qqqq flag, _ssss_tttt_dddd_oooo_uuuu_tttt will be
  85.           a simple list of only the attribute names, one per line, suitable
  86.           for input into a script.
  87.  
  88.      RRRREEEEMMMMOOOOVVVVEEEE
  89.           The ----rrrr aaaattttttttrrrrnnnnaaaammmmeeee option tells _a_t_t_r to remove an attribute with the
  90.           given name from the object if the attribute exists.  There is no
  91.           output on successful completion.
  92.  
  93.      SSSSEEEETTTT////CCCCRRRREEEEAAAATTTTEEEE
  94.           The ----ssss aaaattttttttrrrrnnnnaaaammmmeeee option tells _a_t_t_r to set the named attribute of the
  95.           object to the value read from _ssss_tttt_dddd_iiii_nnnn.  If an attribute with that name
  96.           already exists, its value will be replaced with this one.  If an
  97.           attribute with that name does not already exist, one will be created
  98.           with this value.  With the ----VVVV aaaattttttttrrrrvvvvaaaalllluuuueeee flag, the attribute will be
  99.           set to have a value of aaaattttttttrrrrvvvvaaaalllluuuueeee and _ssss_tttt_dddd_iiii_nnnn will not be read.  With
  100.           the ----qqqq flag, _ssss_tttt_dddd_oooo_uuuu_tttt will not be used.  Without the ----qqqq flag, a
  101.           message showing the attribute name and the entire value will be
  102.           printed.
  103.  
  104.      When the ----LLLL option is given and the named object is a symbolic link,
  105.      operate on the attributes of the object referenced by the symbolic link.
  106.      Without this option, operate on the attributes of the symbolic link
  107.      itself.
  108.  
  109.      When the ----RRRR option is given and the process has appropriate privileges,
  110.      operate in the _r_o_o_t attribute namespace rather that the _U_S_E_R attribute
  111.      namespace.
  112.  
  113.      When the ----qqqq option is given _a_t_t_r will try to keep quiet.  It will output
  114.      error messages (to _ssss_tttt_dddd_eeee_rrrr_rrrr) but will not print status messages (to
  115.      _ssss_tttt_dddd_oooo_uuuu_tttt).
  116.  
  117. NNNNOOOOTTTTEEEESSSS
  118.      The standard file interchange/archive programs _t_a_r(1), _c_p_i_o(1), and
  119.      _b_r_u(1) will not archive or restore Extended Attributes, while the
  120.      _x_f_s_d_u_m_p(1m) program will.
  121.  
  122. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  123.      attr_get(2), attr_getf(2), attr_list(2), attr_listf(2), attr_multi(2),
  124.      attr_multif(2), attr_remove(2), attr_removef(2), attr_set(2),
  125.      attr_setf(2), xfsdump(1m).
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.